<template>
	<view>
		<!-- 日期选择 -->
		<u-calendar max-date="2024-01-01" v-model="show" :mode="mode" @change="change" :mask-close-able="false" :closeable="false">
		</u-calendar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:'',
				store_id: '',
				show: true,
				mode: 'date'
			};
		},
		onShow() {
		this.show=true	
		},
		onLoad(options) {
			console.log('options', options)
			this.store_id = options.store_id
			this.id = options.id
		},
		methods: {
			change(e) {
				let that = this
				var date = new Date(e.result)
				var time1 = date.getTime()/1000;
				console.log(e);
				this.$Router.push({
					path: "/pages/index/courtesy/projectAndwaiter",
					query: {
						store_id: that.store_id,
						reservetime: time1,
						id:that.id
					}
				});
			}
		}
	}
</script>

<style lang="scss">

</style>
